package com.allwees.bs.c.module.order.constant;

import com.allwees.bs.core.model.order.wf.order.EOrderState;
import lombok.Getter;

/**
 * 查询类型
 */
@Getter
public enum EOrderQueryType {

    ALL(
//            EOrderState.CREATED,
            EOrderState.WAIT_SHIP,
            EOrderState.SHIPPED,
            EOrderState.RECEIVED,
            EOrderState.SHIPPING,
            EOrderState.REFUNDED,
            EOrderState.CANCELED,
            EOrderState.DELIVERED,
            EOrderState.CLOSED,
            EOrderState.COMPLETED),

    WAIT_PAY(EOrderState.CREATED),

    WAIT_SHIP(EOrderState.WAIT_SHIP),

    SHIPPED(EOrderState.SHIPPED),

    DELIVERED(EOrderState.DELIVERED),

    REVIEW(
        EOrderState.RECEIVED
    ),

    COMPLETED(
//            EOrderState.WAIT_SETTLE,
//            EOrderState.SETTLED,
            EOrderState.COMPLETED),

    CANCELED(EOrderState.CANCELED),

    CLOSED(EOrderState.CLOSED),

    REFUNDED(EOrderState.REFUNDED),
    ;

    private EOrderState[] states;

    EOrderQueryType(EOrderState... states) {
        this.states = states;
    }
}
